# $Id: PKGBUILD 183488 2013-04-22 09:10:15Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=dirmngr
pkgver=1.1.0
pkgrel=5
pkgdesc="A daemon to handle CRL and certificate requests"
arch=('i686' 'x86_64')
license=('GPL')
url="ftp://ftp.gnupg.org/gcrypt/dirmngr"
depends=('libgcrypt' 'libldap' 'libksba' 'libgpg-error' 'libassuan' 'pth')
source=(ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2)
install=dirmngr.install

build() {
  cd $srcdir/$pkgname-$pkgver
  # FIX for https://bugzilla.redhat.com/565131
  # not sure how best to turn this into something more upstreamable
  # patch configure to try this combo first? -- Rex
  # https://bugs.archlinux.org/task/28606
  export LDAPLIBS="-lldap -llber"
  ./configure --prefix=/usr  --libexecdir=/usr/lib
  make 
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make DESTDIR=$pkgdir install
}
md5sums=('f2570f0248f5947daac200e85291b328')
